<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showByid.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
  </head>
  
  <body>
  <div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
  <div class="body-content">
  
    <form method="post" class="form-x" action="/videomessage/update.do">  
      <c:forEach var="video" items="${list}">
     <
      <div class="form-group">
        <div class="label">
          <label>修改信息<input type="text" style="display: none;" name="videoid" value="${video.videoid}"></label>
        </div>
        <div class="field">
          <input type="text" name="videoname" class="input w50" value="${video.videoname}" data-validate="required:请输入视频名称" name="title" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
 
      </div>     
      
      <if condition="$iscid eq 1">
        <div class="form-group">
          <div class="label">
            <label>标签:</label>
          </div>
          <div class="field">
            <select  name="labelname"  class="input w50">
              <option value="${video.labelname}" selected="selected">${video.labelname}</option>
              <option value="中二病">中二病</option>
              <option value="二次元">二次元</option>
              <option value="清新风">清新风</option>
              <option value="萌系风">萌系风</option>
            </select>
            
            
            
            <div class="tips"></div>
          </div>
          
        <div class="form-group">
          <div class="label">
            <label>分类:</label>
          </div>
          <div class="field">
            <select name="videotype" class="input w50">
              <option value="${video.videotype}">${video.videotype}</option>
              <option value="学生向">学生向</option>
              <option value="少年向">少年向</option>
              <option value="儿童向">儿童向</option>
              <option value="少女向">少女向</option>
           </select>
            
            
            
            <div class="tips"></div>
          </div>   
          
          
          
          
          
        </div>
        <div class="form-group">
          <div class="label">
          <label>展示区域：</label>
          </div>
        <div class="field" style="padding-top:8px;"> 
     
        <c:choose>
        <c:when test="${video.videoarea eq '首页' || video.videoarea eq '首页推荐' ||video.videoarea eq '首页推荐置顶' || video.videoarea eq '首页置顶'}"> 首页 <input id="ishome" checked="checked"  name="home"  value="首页"  type="checkbox" /></c:when>
        <c:otherwise>首页 <input id="ishome"  name="home"  value="首页"  type="checkbox" /></c:otherwise>
        </c:choose>
        
       <c:choose>
        <c:when test="${video.videoarea eq '推荐' || video.videoarea eq '首页推荐' || video.videoarea eq '首页推荐置顶 ' || video.videoarea eq '推荐置顶'} "> 推荐 <input id="isvouch" checked="checked" name="vouch"  value="推荐"  type="checkbox" /></c:when>
        <c:otherwise> 推荐 <input id="isvouch" name="vouch"  value="推荐"  type="checkbox" /></c:otherwise>
       </c:choose>
       
        <c:choose>
        <c:when test="${video.videoarea eq '置顶' || video.videoarea eq '首页置顶' || video.videoarea eq '首页推荐置顶' || video.videoarea eq '推荐置顶 '} "> 置顶 <input id="istop" checked="checked"  name="top"  value="置顶"  type="checkbox" /> </c:when>
        <c:otherwise> 置顶 <input id="istop"  name="top"  value="置顶"  type="checkbox" /> </c:otherwise>
        </c:choose>     
             
          
         
        </div>
        </div>
      </if>
      <div class="form-group">
        <div class="label">
          <label>视频介绍：</label>
        </div>
        <div class="field">
          <textarea  class="input"  name="videorecommend" data-validate="required:请输入视频介绍" style=" height:90px;">
          ${video.videorecommend}
          </textarea>
          <div class="tips"></div>
        </div>
      </div>
     
     <div class="form-group">
        <div class="label">
          <label>热度：</label>
        </div>
       
           <input type="text" name="hot" value="${video.hot}">
  
      </div>
     
    
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
       </c:forEach>
    </form>
  </div>
</div>

  </body>
</html>
